﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.VGA
{
    public class VGAController
    {
        public List<String> GetListEngineByManufacture(string sManufacture)
        {
            VGADataAccess vda = new VGADataAccess();
            return vda.GetListEnginebyManufactureName(sManufacture);
        }

        public List<string> GetListMemoryByManufactureAndEngine(string sManufacture, string sEngine)
        {
            VGADataAccess vda = new VGADataAccess();
            return vda.GetListMemorybyManufactureNameAndEngine(sManufacture, sEngine);

        }

        public List<string> GetListProductByManufactureAndEngineAndMemory(string sManufacture,string sEngine,string sMemory)
        {
            VGADataAccess vda = new VGADataAccess();
            return vda.GetListProductbyManufactureNameAndEngineAndMemory(sManufacture, sEngine, sMemory);
        }
        
        public int GetVGAIDByManufactureAndEngineAndMemoryAndName(string sManufacture,string sEngine,string sMemory,string sName)
        {
            VGADataAccess vda = new VGADataAccess();
            return vda.GetSVGAID(sManufacture, sEngine, sMemory, sName);
        }


    }
}
